home *** CD-ROM | disk | FTP | other *** search
- stop();
- var myResourcesLoader = new LoadVars();
- var myPath = "";
- var imClicked = false;
- myResourcesLoader.onData = function(dat)
- {
- trace(dat);
- if(dat.indexOf("link") != -1)
- {
- trace("LINK DETECTED");
- trace("Loading Link Image at: " + myPath + "shot.jpg");
- _root.loadPictures(myPath,Array("/shot.jpg"));
- }
- else if(dat.indexOf("folder") == -1)
- {
- resources = dat.split("-");
- resources.shift();
- r = 0;
- while(r < resources.length)
- {
- resources[r] = resources[r].indexOf("\n") == -1 ? resources[r] : resources[r].slice(0,-2);
- r++;
- }
- trace("resource Loaded");
- if(dat.indexOf(".flv") != -1)
- {
- trace(resources);
- _root.setVideoResourcesList(resources);
- _root.setVideoPath(myPath);
- _root.loadVideo(resources,0);
- }
- else
- {
- _root.loadPictures(myPath,resources);
- }
- }
- else
- {
- paths = dat.split("-");
- paths.shift();
- plat = System.capabilities.os;
- pcPath = "";
- macPath = "";
- p = 0;
- while(p < paths.length)
- {
- if(paths[p].toLowerCase().indexOf("mac") != -1)
- {
- macPath = paths[p].split("=")[1];
- }
- else
- {
- pcPath = myPath + _global.delim + paths[p].split("=")[1];
- }
- if(plat.toLowerCase().indexOf("win") != -1)
- {
- _root.setOpenFolder(pcPath,0);
- }
- else
- {
- _root.setOpenFolder(macPath,1);
- }
- _root.loadPictures(myPath,Array("shot.jpg"));
- p++;
- }
- }
- };
- this.onRelease = function()
- {
- trace(this.pPath);
- if(!imClicked)
- {
- _root.openFolderButton._visible = false;
- _root.openFolderMacPathIndicator._visible = false;
- _root.unClickActiveItems();
- imClicked = true;
- this.gotoAndStop(2);
- _root.stopVideo();
- cPath = mdm.Application.path + "discContents" + _global.delim + this.secPath + _global.delim + this.pPath;
- myPath = cPath;
- _root.loadInfoText(cPath);
- _root.setMainTitle(this.iName);
- myResourcesLoader.load(cPath + _global.delim + "resources.txt");
- }
- };
-